package com.peppa.petshop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张三
 * @since 2021-06-02
 */
@Data
  @EqualsAndHashCode(callSuper = false)
public class Customer implements Serializable {
  private static final long serialVersionUID = 1L;
  @TableId(value = "customer_id", type = IdType.AUTO)
  private Integer customerId;
  private String customerName;
  private String phone;
  private String password;
  private Boolean isManager;
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;
  @TableLogic
  private Integer deleted;
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;
  public Customer(Integer customerId, String customerName, String phone, String password, Boolean isManager, LocalDateTime createTime, Integer deleted, LocalDateTime updateTime) {
    this.customerId = customerId;
    this.customerName = customerName;
    this.phone = phone;
    this.password = password;
    this.isManager = isManager;
    this.createTime = createTime;
    this.deleted = deleted;
    this.updateTime = updateTime;
  }

}
